home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 36 / qostnote.zip / FORMFEED.PAT < prev    next >
Text File  |  1989-07-05  |  4KB  |  87 lines

  1. Quarterdeck Technical Note
  2. by Stan Young
  3.  
  4. Patching the DESQview Printer Contention driver to remove the 
  5. automatic formfeed:
  6.  
  7. Background:  One of the features of DESQview 2.+ is the ability 
  8. to manage printer contention.  What this means is that if you are 
  9. in one window outputing something to the printer and then switch 
  10. windows and accidentally start a print to the same printer,  
  11. DESQview Printer Contention will step in and interrupt the second 
  12. task until the first has finished. Some users will want to have 
  13. this option on, others will find it not too useful.  However, if 
  14. you have it on, you may notice that you sometimes get extra 
  15. formfeeds.  This is because Printer Contention tries to be sure 
  16. an application that has done a print has moved the printer to the 
  17. top of form before allowing another print to occur.  Otherwise, 
  18. you could end up with the second print starting at the bottom of 
  19. the last page of the previous print.  Therefore, Printer 
  20. Contention sends a formfeed to be sure the printer is a top of 
  21. form.  Since many programs do not close out the printer in a way 
  22. that Printer Contention can detect that the printer is a top of 
  23. form, you can end up with a lot of blank, ejected sheets when you 
  24. use DESQview Printer Contention.  Eventually, we may offer some 
  25. sort of switch to allow the users to select the formfeed option 
  26. or not, but at present, it is possible to patch the driver to 
  27. eliminate the formfeed.
  28.  
  29.                            THE PATCH
  30.  
  31. First, make sure you have a PATH set to your DEBUG.COM file which 
  32. is part of your DOS files and is usually located in your DOS 
  33. directory.  Switch to the DESQview directory and type in the 
  34. following to start DEBUG and load the DESQview Printer Contention 
  35. driver.
  36.  
  37. C:\DV>debug rmgrdv.dvr
  38.  
  39. After loading, DEBUG returns a minus sign (-) as a prompt.
  40.  
  41. First we will find the spot where the Printer Contention driver 
  42. outputs the formfeed.  Type in the following:
  43.  
  44. -s0 1000 50 b8 0c 00        <--- Hit Enter
  45.  
  46. Debug will display something like the following.  The part that 
  47. is shown as xxxx will be some hex number that we are not 
  48. concerned with.  The number after the colon is the one we are 
  49. concerned with and may or may not be the "03E2" figure that is 
  50. shown below.  What ever is returned on your machine after the 
  51. colon on your machine is the number to use.  If no such number is 
  52. returned and you are returned to the "-" prompt, you probably 
  53. entered some-thing incorrectly (type q to quit and start again).
  54.  
  55. xxxx:03E2
  56.  
  57. Type in the following.  If the number your machine returned after 
  58. the colon was different than 03E2, substitute the number returned 
  59. where it says 03e2 below...
  60.  
  61. -e03e2
  62.  
  63. You will get a display similar to the one below except the 
  64. display will be paused after the "50." and will be waiting for 
  65. input.  Type in the "EB" and hit the space bar.  Debug will then 
  66. tab over and display "B8" and again pause for input.  Type in 
  67. "0A" and hit the Enter key.
  68.  
  69. 413C:03E2  50.EB   B8.0A
  70.               ^       ^     <--Type hex numbers starting at carets
  71.  
  72. The "-" prompt will be returned by Debug.  Type "w" to write out 
  73. the change and hit Enter. -w            
  74.  
  75. Debug will indicate that it is writing out the change.
  76.  
  77. Writing xxx bytes
  78.  
  79. Type "q" to quit out of Debug.
  80.  
  81. -q
  82.  
  83. You will get the DOS prompt and you are done.  Now restart 
  84. DESQview and you should not get formfeeds.
  85.  
  86.              * * *   E N D   O F   F I L E    * * * 
  87.